Computer file management

The term computer file management refers to the manipulation of documents and data in files on a computer. Specifically, one may create a new file or edit an existing file and save it; open or load a pre-existing file into memory; or close a file without saving it. Additionally, one may group related files in directories. These tasks are accomplished in different ways in different operating systems and depend on the user interface design and, to some extent, the storage medium being used.

Concept of the hierarchy of files

Files can also be managed based on their location on a storage device. They are stored in a storage medium in binary form. Physically, the data is placed in a not-so-well organized structure, due to fragmentation. However, the grouping of files into directories (for operating systems such as DOS, Unix, Linux) or folders (for the Mac OS and Windows) is done by changing an index of file information known as the File Allocation Table (NTFS for recent versions of Windows) or Master File Table (depending on operating system used). In this index, the physical location of a particular file on the storage medium is stored, as well as its position in the hierarchy of directories (as we see it using commands such as DIR, LS and programs such as Explorer, Finder).

On Unix/Linux machines the hierarchy is:

For DOS/Windows the hierarchy (along with examples):

Commands such as:

can be used to manage (copy or move) the files to and from other directories.

See also